package auth

import groovy.transform.CompileStatic
import org.springframework.boot.autoconfigure.flyway.FlywayDataSource
import org.springframework.context.annotation.Bean
import org.springframework.context.annotation.Configuration

import javax.annotation.Resource
import javax.sql.DataSource

@CompileStatic
@Configuration
class FlywayConfigurer {
    @Resource
    private DataSource dataSource

    @Bean
    @FlywayDataSource
    DataSource flywayDataSource() {
        return dataSource
    }
}
